// LimitationTime.h: interface for the CLimitationTime class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LIMITATIONTIME_H__D0A0E45B_3A29_48A4_A8D7_09F6864417B2__INCLUDED_)
#define AFX_LIMITATIONTIME_H__D0A0E45B_3A29_48A4_A8D7_09F6864417B2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "LimitationV.h"

class CLimitationTime
	: public CLimitationV
{
// Interface
public:
	bool SetDeadline(const COleDateTime& dtDeadline);
	const COleDateTime* const GetDeadline() const;
	virtual void Remove();
	virtual bool IsPastDue();
	virtual void HandlePassAuthentication();

// Construction/Destruction
public:
	CLimitationTime(const UINT& nLimitationID);
	virtual ~CLimitationTime();

// Data
protected:
	COleDateTime m_deadline;

// Implement
protected:
	virtual void OnNew(CADORecordset* pRS);
	virtual void MakeInValid();
	inline virtual void Load();
private:
	static const CString KLimitationTime;
	static const CString Deadline;
	bool SaveDeadline();
};

#endif // !defined(AFX_LIMITATIONTIME_H__D0A0E45B_3A29_48A4_A8D7_09F6864417B2__INCLUDED_)
